using System;

 namespace QLST_DTO 
{
	 [Serializable]
	 public class LOAI_NHAN_VIEN
	{
	private int maLoai;
	private string tenLoai;
	private string moTa;
	public LOAI_NHAN_VIEN()
	{}
	public LOAI_NHAN_VIEN(int maLoai,string tenLoai,string moTa)
	{
	this.maLoai = maLoai;
	this.tenLoai = tenLoai;
	this.moTa = moTa;
	}
	public int MaLoai{
	get { return this.maLoai;}
	set { if(value==null) 
		throw new Exception("maLoai not allow nullvalue.");
		this.maLoai=value;
	}	}
	public string TenLoai{
	get { return this.tenLoai;}
	set { if(value==null) 
		throw new Exception("tenLoai not allow nullvalue.");
		this.tenLoai=value;
	}	}
	public string MoTa{
	get { return this.moTa;}
	set {this.moTa=value;}
	}
	public override string ToString(){
	return this.maLoai+"; "+this.tenLoai+"; "+this.moTa+"; ";
	}
	public override bool Equals(Object obj)
	{
	LOAI_NHAN_VIEN me=(LOAI_NHAN_VIEN)obj;
	bool ret=this.MaLoai.Equals(me.MaLoai);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.MaLoai.GetHashCode();
	}

	}
} 